package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyCastUpperLimitDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.AdminUserEcologyCastUpperLimitPageVO;
import com.sc.nft.entity.vo.ecology.UserEcologyCastUpperLimitDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 生态-铸造上限记录明细表(sc_user_ecology_cast_upper_limit_details)数据Mapper
 *
 * @author Sun
 * @since 2024-03-12 20:04:32
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyCastUpperLimitDetailsMapper extends BaseMapper<UserEcologyCastUpperLimitDetails> {

    /**
     * 用户铸造上限明细
     * @param page
     * @param userId
     * @return
     */
    Page<UserEcologyCastUpperLimitDetailsVO> getUserEcologyCastUpperLimitDetails(Page page, @Param("userId") Long userId,@Param("collectionId") Long collectionId);

/**
     * 用户铸造上限明细
     * @param page
     * @param userId
     * @param collectionId
     * @param beginTime
     * @param endTime
     * @return
     */
    Page<AdminUserEcologyCastUpperLimitPageVO> getUserEcologyCastUpperLimitPage(Page page, @Param("userId") Long userId,@Param("collectionId") Long collectionId,@Param("beginTime") Date beginTime,@Param("endTime") Date endTime);

    Integer saveList(List<UserEcologyCastUpperLimitDetails> list);
}
